package com.lucnn.diamond.spring.condition;

import com.lucnn.diamond.spring.bean.Color;
import org.springframework.beans.factory.FactoryBean;

public class MyFactoryBean implements FactoryBean<Color>{
    public Color getObject() throws Exception {
        System.out.println("MyFactoryBean init");
        return new Color();
    }

    public Class<?> getObjectType() {
        return Color.class;
    }

    public boolean isSingleton() {
        return true;
    }
}
